import { postRequest, getRequest, deleteRequest } from '/@/lib/axios';

// 查询服务车辆列表
export function listServiceVehicle(query) {
  return getRequest('/vehicleSys/serviceVehicle/list', query)
}

// 查询服务车辆详细
export function getServiceVehicle(id) {
  return getRequest(`/vehicleSys/serviceVehicle/${id}`)
}

// 新增服务车辆
export function addServiceVehicle(data) {
  return postRequest('/vehicleSys/serviceVehicle', data)
}

// 修改服务车辆
export function updateServiceVehicle(data) {
  return postRequest('/vehicleSys/serviceVehicle', data)
}

// 删除服务车辆
export function delServiceVehicle(id) {
  return deleteRequest(`/vehicleSys/serviceVehicle/${id}`)
}
